package nc.itf.budget.downsent;



/**
 * business service ejb wrapper 
 * Created by EJBGenerator
 * based on velocity technology
 */

public class IDownsent_Local extends nc.bs.mw.naming.BeanBase
    implements nc.itf.budget.downsent.IDownsentEjbObject {
   
  public IDownsent_Local() {
	super();
  }

  private nc.itf.budget.downsent.IDownsentEjbBean _getBeanObject() throws java.rmi.RemoteException {
    return (nc.itf.budget.downsent.IDownsentEjbBean) getEjb();
  }

  public java.util.List getAll() throws java.lang.Exception{
    beforeCallMethod(nc.itf.budget.downsent.IDownsent_Method_Const_Local.Method_getAll    );
    Exception er = null;
	java.util.List o = null;
	try{
				o = (java.util.List)_getBeanObject().getAll();			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);	  
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.budget.downsent.IDownsent_Method_Const_Local.Method_getAll, er);
 	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
	return o;
 }
  public java.lang.String getNowYear() throws java.lang.Exception{
    beforeCallMethod(nc.itf.budget.downsent.IDownsent_Method_Const_Local.Method_getNowYear    );
    Exception er = null;
	java.lang.String o = null;
	try{
				o = (java.lang.String)_getBeanObject().getNowYear();			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);	  
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.budget.downsent.IDownsent_Method_Const_Local.Method_getNowYear, er);
 	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
	return o;
 }
  public boolean getAuditStatus(int arg0 ,java.lang.String arg1  ,nc.vo.budget.pub.CheckVO arg2  ,boolean arg3 ) throws java.lang.Exception{
    beforeCallMethod(nc.itf.budget.downsent.IDownsent_Method_Const_Local.Method_getAuditStatus$int_arg0$String_arg1$CheckVO_arg2$boolean_arg3    );
    Exception er = null;
	boolean o = false;
	try{
				o = (boolean)_getBeanObject().getAuditStatus(arg0 ,arg1  ,arg2  ,arg3 );			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.budget.downsent.IDownsent_Method_Const_Local.Method_getAuditStatus$int_arg0$String_arg1$CheckVO_arg2$boolean_arg3, er);
	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
	return o;
 }
  public java.util.ArrayList getPKListByWhereCondition(java.lang.String arg0) throws java.lang.Exception{
    beforeCallMethod(nc.itf.budget.downsent.IDownsent_Method_Const_Local.Method_getPKListByWhereCondition$String_arg0    );
    Exception er = null;
	java.util.ArrayList o = null;
	try{
				o = (java.util.ArrayList)_getBeanObject().getPKListByWhereCondition(arg0);			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);	  
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.budget.downsent.IDownsent_Method_Const_Local.Method_getPKListByWhereCondition$String_arg0, er);
 	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
	return o;
 }
  public void addPk_check(nc.vo.budget.downsend.DownsendVO arg0) throws java.lang.Exception{
    beforeCallMethod(nc.itf.budget.downsent.IDownsent_Method_Const_Local.Method_addPk_check$DownsendVO_arg0    );
    Exception er = null;
	try{
				_getBeanObject().addPk_check(arg0);			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.budget.downsent.IDownsent_Method_Const_Local.Method_addPk_check$DownsendVO_arg0, er);    	
	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
 }
  public void checkOrNot(java.lang.String arg0 ,boolean arg1 ) throws java.lang.Exception{
    beforeCallMethod(nc.itf.budget.downsent.IDownsent_Method_Const_Local.Method_checkOrNot$String_arg0$boolean_arg1    );
    Exception er = null;
	try{
				_getBeanObject().checkOrNot(arg0 ,arg1 );			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.budget.downsent.IDownsent_Method_Const_Local.Method_checkOrNot$String_arg0$boolean_arg1, er);    	
	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
 }
  public void checkOrNot(java.lang.String arg0 ,java.lang.String arg1 ) throws java.lang.Exception{
    beforeCallMethod(nc.itf.budget.downsent.IDownsent_Method_Const_Local.Method_checkOrNot$String_arg0$String_arg1    );
    Exception er = null;
	try{
				_getBeanObject().checkOrNot(arg0 ,arg1 );			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.budget.downsent.IDownsent_Method_Const_Local.Method_checkOrNot$String_arg0$String_arg1, er);    	
	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
 }
  public void gen() throws java.lang.Exception{
    beforeCallMethod(nc.itf.budget.downsent.IDownsent_Method_Const_Local.Method_gen    );
    Exception er = null;
	try{
				_getBeanObject().gen();			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.budget.downsent.IDownsent_Method_Const_Local.Method_gen, er);    	
	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
 }
  public void genUpdate(java.lang.String arg0 ,java.lang.String arg1 ) throws java.lang.Exception{
    beforeCallMethod(nc.itf.budget.downsent.IDownsent_Method_Const_Local.Method_genUpdate$String_arg0$String_arg1    );
    Exception er = null;
	try{
				_getBeanObject().genUpdate(arg0 ,arg1 );			
	}
	catch(Exception e){
		er = e;
	} catch(Throwable thr) {
		  nc.bs.logging.Logger.error("HGY:Unexpected error, tx will rb", thr);
		  er = new nc.bs.framework.exception.FrameworkEJBException("Fatal unknown error", thr);
	}
	try{
		afterCallMethod(nc.itf.budget.downsent.IDownsent_Method_Const_Local.Method_genUpdate$String_arg0$String_arg1, er);    	
	}
	catch(java.rmi.RemoteException remoteException){
		nc.bs.logging.Logger.error("HGY: Unexpected error when call afterCallMethod",  remoteException);
	} finally {
			}
	if( null != er ){
    	if( er instanceof java.lang.Exception ){
    		throw (java.lang.Exception)er;
    	}    

	if(er instanceof RuntimeException)
		throw (RuntimeException)er;
	else	
		throw new nc.bs.framework.exception.FrameworkEJBException(er.getMessage(),er);
	}
 }
}